// FlightControl.pde is responsible for combining sensor measurements and
// transmitter commands into motor commands for the defined flight configuration (X, +, etc.)
//////////////////////////////////////////////////////////////////////////////
/////////////////////////// calculateFlightError /////////////////////////////
//////////////////////////////////////////////////////////////////////////////

/**
 * Altitude control processor do the premilary treatment on throttle correction
 * to control the altitude of the craft. It then modify directly the
 * throttle variable use by the motor matrix calculation
 */

#ifndef _AQ_ALTITUDE_CONTROL_PROCESSOR_H_
#define _AQ_ALTITUDE_CONTROL_PROCESSOR_H_

/**
 * processAltitudeHold
 *
 * This function is responsible to process the throttle correction
 * to keep the current altitude if selected by the user
 */
void processAltitudeHold() {
    throttle = receiverCommand[THROTTLE];
}

#endif // _AQ_ALTITUDE_CONTROL_PROCESSOR_H_
